package org.tote.command;

import org.tote.model.User;
import org.tote.model.UserLight;

public class UserCommandLight {
	private Long id;
	private String name;
	/** any additional information about user for particular view */
	private String info;

	public UserCommandLight(User user) {
		super();
		this.id = user.getId();
		this.name = user.getName();
	}

	public UserCommandLight(UserLight user) {
		super();
		this.id = user.getId();
		this.name = user.getName();
	}

	public UserCommandLight(Long id, String name) {
		super();
		this.id = id;
		this.name = name;
	}

	public UserLight getAsUserLight() {
		UserLight user = new UserLight();
		user.setId(id);
		user.setName(name);
		return user;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}
}
